package cn.gson.springboot.model.pojos;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;


/**
 * The persistent class for the outpatient_records database table.
 * 
 */
@Entity
@Table(name="outpatient_records")
@NamedQuery(name="OutpatientRecord.findAll", query="SELECT o FROM OutpatientRecord o")
public class OutpatientRecord implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="medical_id")
	private int medicalId;

	private String blys;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="doctor_date")
	private Date doctorDate;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="generate_date")
	private Date generateDate;

	@Column(name="medical_disease")
	private String medicalDisease;

	@Column(name="medical_symptoms")
	private String medicalSymptoms;

	@Column(name="medical_temperature")
	private BigDecimal medicalTemperature;

	@Column(name="medical_weight")
	private BigDecimal medicalWeight;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="sick_date")
	private Date sickDate;

	//bi-directional many-to-one association to RegisteredPx
	@ManyToOne
	@JoinColumn(name="outpatient_id")
	private RegisteredPx registeredPx;

	public OutpatientRecord() {
	}

	public int getMedicalId() {
		return this.medicalId;
	}

	public void setMedicalId(int medicalId) {
		this.medicalId = medicalId;
	}

	public String getBlys() {
		return this.blys;
	}

	public void setBlys(String blys) {
		this.blys = blys;
	}

	public Date getDoctorDate() {
		return this.doctorDate;
	}

	public void setDoctorDate(Date doctorDate) {
		this.doctorDate = doctorDate;
	}

	public Date getGenerateDate() {
		return this.generateDate;
	}

	public void setGenerateDate(Date generateDate) {
		this.generateDate = generateDate;
	}

	public String getMedicalDisease() {
		return this.medicalDisease;
	}

	public void setMedicalDisease(String medicalDisease) {
		this.medicalDisease = medicalDisease;
	}

	public String getMedicalSymptoms() {
		return this.medicalSymptoms;
	}

	public void setMedicalSymptoms(String medicalSymptoms) {
		this.medicalSymptoms = medicalSymptoms;
	}

	public BigDecimal getMedicalTemperature() {
		return this.medicalTemperature;
	}

	public void setMedicalTemperature(BigDecimal medicalTemperature) {
		this.medicalTemperature = medicalTemperature;
	}

	public BigDecimal getMedicalWeight() {
		return this.medicalWeight;
	}

	public void setMedicalWeight(BigDecimal medicalWeight) {
		this.medicalWeight = medicalWeight;
	}

	public Date getSickDate() {
		return this.sickDate;
	}

	public void setSickDate(Date sickDate) {
		this.sickDate = sickDate;
	}

	public RegisteredPx getRegisteredPx() {
		return this.registeredPx;
	}

	public void setRegisteredPx(RegisteredPx registeredPx) {
		this.registeredPx = registeredPx;
	}

}